<?php

/**
 * WeEngine System
 *
 * (c) We7Team 2021 <https://www.w7.cc>
 *
 * This is not a free software
 * Using it under the license terms
 * visited https://www.w7.cc for more details
 */

namespace app\validate;

use W7\Validate\Validate;

class TagValidate extends Validate
{
    protected $rule = [
        'id'   => 'required|numeric|exists:demo_tags',
        'page' => 'numeric|min:1',
        'name' => 'required|string|min:1|max:6'
    ];

    protected $customAttributes = [
        'page' => '页码',
        'name' => '名称',
        'id'   => '指定标签'
    ];
}
